row = 1
while row <= 9:
    col = 1
    while col <= row:
        print("%d * %d = %d" % (row, col, row * col), end='\t')
        col = col + 1

    # 换行
    print("")
    row += 1
    